import Home from '../views/Home'

export const routes = [
    {
        path: '/',
        redirect: 'login'
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('../views/About.vue')
    },
    {
        path: '/todo',
        name: 'todo',
        component: () => import('../views/todo/todo.vue')
    },
    {
        path: '/index',
        name: 'index',
        component: () => import('../views/index.vue')
    },
    {
        path: '/form',
        name: 'test-form',
        component: () => import('../layout/test-form.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/login/login_container.vue')
    },
    {
        path: '/update_pwd',
        name: 'update_pwd',
        component: () => import('../views/login/login_container.vue')
    },
    {
        path: '/dashboard',
        name: 'dashboard',
        component: () => import('../views/dashboard/dashboard.vue'),
        redirect: '/dashboard/pdf2img',
        children: [
            {
                path: 'pdf2img',
                component: () => import('../views/dashboard/pdf2img.vue')
            },
            {
                path: 'img2pdf',
                component: () => import('../views/dashboard/img2pdf.vue')
            },
            {
                path: 'imgScale',
                component: () => import('../views/dashboard/imageScale.vue')
            },
            {
                path: 'pictureReco',
                component: () => import('../views/dashboard/pictureReco.vue')
            }
        ]
    }
]
